﻿using System.ComponentModel.Composition;
using MediaAssistant.Constants;
using MediaAssistant.DAL;

namespace MediaAssistant.MusicDJ
{
    [Export(typeof(IMusicDJ))]
    public class RandomDJ : AMusicDJ
    {
        public RandomDJ()
            : base(MusicDJName.RandomDJ)
        {
        }

        protected override void CalculateProbability(Music playingMusic)
        {
            foreach (var music in NextMusics)
            {
                music.Probability = 1d / NextMusics.Count;
            }
        }

    }
}